const app = getApp()

Page({
  data: {
    company: []
  },
  //监听页面初次载入完成
  onLoad: function (options) {
    app.getParam(options,(rel)=>{
      this.getApi(rel.id);
    })
  },
  //获取
  getApi: function (id) {
    var parms = {
      id: id,
    }
    app.api().Get('api/v1/bestbao/card/renews', parms,(result) => {
      if (result.code == 200) {
        this.setData({
          news: result.data,
        });
      }
    })
  }
})